import request from '@/utils/request'

let AdApi = {
    /*广告列表*/
    adList(data, errorback) {
      return request._post('/shop/operate.market/index', data, errorback);
    },
    /*添加广告*/
    addAd(data, errorback) {
      return request._post('/shop/operate.market/add', data, errorback);
    },
     /*添加广告*/
    toaddAd(data, errorback) {
      return request._get('/shop/operate.market/add', data, errorback);
    },
    /*广告详情*/
    adDetail(data, errorback) {
      return request._get('/shop/operate.market/detail', data, errorback);
    },
    /*修改广告*/
    editAd(data, errorback) {
      return request._post('/shop/operate.market/edit', data, errorback);
    },
    /*删除广告*/
    deleteAd(data, errorback) {
      return request._post('/shop/operate.market/delete', data, errorback);
    },

     /*广告类型*/
    AdType(data, errorback) {
      return request._get('/shop/operate.market/getAdTypeList', data, errorback);
    },
    /*商户列表*/
    getSupplierList(data, errorback) {
      return request._post('/shop/order.order/getSupplierList', data, errorback);
  },
}

export default AdApi;
